// #region test data

import { arrayToArrayBuffer } from "../helpers";

export const corruptRiveFileBytes = [0x43, 0x67, 0xac, 0x00, 0xff, 0x2e];
export const corruptRiveFileBuffer = arrayToArrayBuffer(corruptRiveFileBytes);

export const pingPongRiveFileBytes = [
  0x52, 0x49, 0x56, 0x45, 0x07, 0x00, 0x8b, 0x94, 0x02, 0x00, 0x17, 0x00, 0x01,
  0x07, 0x00, 0x00, 0xfa, 0x43, 0x08, 0x00, 0x00, 0xfa, 0x43, 0x04, 0x0c, 0x4e,
  0x65, 0x77, 0x20, 0x41, 0x72, 0x74, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x00, 0x03,
  0x05, 0x00, 0x0d, 0x00, 0x00, 0x7a, 0x43, 0x0e, 0x00, 0x00, 0x7a, 0x43, 0x00,
  0x07, 0x05, 0x01, 0x14, 0xea, 0xa3, 0xc7, 0x42, 0x15, 0xea, 0xa3, 0xc7, 0x42,
  0x00, 0x14, 0x05, 0x01, 0x00, 0x12, 0x05, 0x03, 0x00, 0x14, 0x05, 0x00, 0x00,
  0x12, 0x05, 0x05, 0x25, 0x31, 0x31, 0x31, 0xff, 0x00, 0x1f, 0x37, 0x0b, 0x41,
  0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x31, 0x39, 0x0a, 0x3b,
  0x02, 0x00, 0x19, 0x33, 0x01, 0x00, 0x1a, 0x35, 0x0d, 0x00, 0x1e, 0x44, 0x01,
  0x46, 0xe8, 0xa3, 0x47, 0x42, 0x00, 0x1e, 0x43, 0x0a, 0x44, 0x01, 0x46, 0x83,
  0x0b, 0xe1, 0x43, 0x00, 0x1a, 0x35, 0x0e, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x00,
  0x00, 0x7a, 0x43, 0x00, 0x1e, 0x43, 0x0a, 0x44, 0x01, 0x46, 0x00, 0x00, 0x7a,
  0x43, 0x00,
];
export const pingPongRiveFileBuffer = arrayToArrayBuffer(pingPongRiveFileBytes);

export const oneShotRiveFileBytes = [
  0x52, 0x49, 0x56, 0x45, 0x07, 0x00, 0x8b, 0x94, 0x02, 0x00, 0x17, 0x00, 0x01,
  0x07, 0x00, 0x00, 0xfa, 0x43, 0x08, 0x00, 0x00, 0xfa, 0x43, 0x04, 0x0c, 0x4e,
  0x65, 0x77, 0x20, 0x41, 0x72, 0x74, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x00, 0x03,
  0x05, 0x00, 0x0d, 0x00, 0x00, 0x7a, 0x43, 0x0e, 0x00, 0x00, 0x7a, 0x43, 0x00,
  0x07, 0x05, 0x01, 0x14, 0xea, 0xa3, 0xc7, 0x42, 0x15, 0xea, 0xa3, 0xc7, 0x42,
  0x00, 0x14, 0x05, 0x01, 0x00, 0x12, 0x05, 0x03, 0x00, 0x14, 0x05, 0x00, 0x00,
  0x12, 0x05, 0x05, 0x25, 0x31, 0x31, 0x31, 0xff, 0x00, 0x1f, 0x37, 0x0b, 0x41,
  0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x31, 0x39, 0x0a, 0x00,
  0x19, 0x33, 0x01, 0x00, 0x1a, 0x35, 0x0d, 0x00, 0x1e, 0x44, 0x01, 0x46, 0xe8,
  0xa3, 0x47, 0x42, 0x00, 0x1e, 0x43, 0x0a, 0x44, 0x01, 0x46, 0x83, 0x0b, 0xe1,
  0x43, 0x00, 0x1a, 0x35, 0x0e, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x00, 0x00, 0x7a,
  0x43, 0x00, 0x1e, 0x43, 0x0a, 0x44, 0x01, 0x46, 0x00, 0x00, 0x7a, 0x43, 0x00,
];
export const oneShotRiveFileBuffer = arrayToArrayBuffer(oneShotRiveFileBytes);

export const loopRiveFileBytes = [
  0x52, 0x49, 0x56, 0x45, 0x07, 0x00, 0x8b, 0x94, 0x02, 0x00, 0x17, 0x00, 0x01,
  0x07, 0x00, 0x00, 0xfa, 0x43, 0x08, 0x00, 0x00, 0xfa, 0x43, 0x04, 0x0c, 0x4e,
  0x65, 0x77, 0x20, 0x41, 0x72, 0x74, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x00, 0x03,
  0x05, 0x00, 0x0d, 0x00, 0x00, 0x7a, 0x43, 0x0e, 0x00, 0x00, 0x7a, 0x43, 0x00,
  0x07, 0x05, 0x01, 0x14, 0xea, 0xa3, 0xc7, 0x42, 0x15, 0xea, 0xa3, 0xc7, 0x42,
  0x00, 0x14, 0x05, 0x01, 0x00, 0x12, 0x05, 0x03, 0x00, 0x14, 0x05, 0x00, 0x00,
  0x12, 0x05, 0x05, 0x25, 0x31, 0x31, 0x31, 0xff, 0x00, 0x1f, 0x37, 0x0b, 0x41,
  0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x31, 0x39, 0x0a, 0x3b,
  0x01, 0x00, 0x19, 0x33, 0x01, 0x00, 0x1a, 0x35, 0x0d, 0x00, 0x1e, 0x44, 0x01,
  0x46, 0xe8, 0xa3, 0x47, 0x42, 0x00, 0x1e, 0x43, 0x0a, 0x44, 0x01, 0x46, 0x83,
  0x0b, 0xe1, 0x43, 0x00, 0x1a, 0x35, 0x0e, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x00,
  0x00, 0x7a, 0x43, 0x00, 0x1e, 0x43, 0x0a, 0x44, 0x01, 0x46, 0x00, 0x00, 0x7a,
  0x43, 0x00,
];
export const loopRiveFileBuffer = arrayToArrayBuffer(loopRiveFileBytes);

export const stateMachineFileBytes = [
  0x52, 0x49, 0x56, 0x45, 0x07, 0x00, 0xe1, 0x20, 0x00, 0x17, 0x00, 0x01, 0x04,
  0x0a, 0x4d, 0x79, 0x41, 0x72, 0x74, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x07, 0x00,
  0x00, 0xfa, 0x43, 0x08, 0x00, 0x00, 0xfa, 0x43, 0x09, 0x00, 0x00, 0xbe, 0xc2,
  0x0a, 0x00, 0x00, 0xd2, 0xc2, 0x00, 0x03, 0x04, 0x0b, 0x4d, 0x79, 0x52, 0x65,
  0x63, 0x74, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x05, 0x00, 0x0d, 0x78, 0x55, 0x48,
  0x42, 0x0e, 0x78, 0x55, 0x48, 0x42, 0x00, 0x07, 0x04, 0x0f, 0x4d, 0x79, 0x52,
  0x65, 0x63, 0x74, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x05,
  0x01, 0x14, 0x7a, 0x55, 0xc8, 0x42, 0x15, 0x7a, 0x55, 0xc8, 0x42, 0x00, 0x12,
  0x05, 0x05, 0x00, 0x12, 0x05, 0x06, 0x25, 0x31, 0x31, 0x31, 0xff, 0x00, 0x14,
  0x05, 0x01, 0x00, 0x14, 0x04, 0x0a, 0x42, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f,
  0x75, 0x6e, 0x64, 0x05, 0x00, 0x00, 0x1f, 0x37, 0x19, 0x57, 0x6f, 0x72, 0x6b,
  0x41, 0x72, 0x65, 0x61, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6e, 0x67, 0x41,
  0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x02, 0x3c, 0x0f, 0x3d,
  0x2e, 0x3e, 0x01, 0x00, 0x19, 0x33, 0x01, 0x00, 0x1a, 0x35, 0x0d, 0x00, 0x1e,
  0x44, 0x01, 0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x14, 0x44, 0x01,
  0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x28, 0x44, 0x01, 0x46, 0x51,
  0xf5, 0xe0, 0x43, 0x00, 0x1e, 0x43, 0x3c, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0,
  0x43, 0x00, 0x1a, 0x35, 0x0e, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x7a, 0x55, 0x48,
  0x42, 0x00, 0x1e, 0x43, 0x14, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00,
  0x1e, 0x43, 0x28, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00, 0x1e, 0x43,
  0x3c, 0x44, 0x01, 0x46, 0x78, 0x55, 0x48, 0x42, 0x00, 0x1f, 0x37, 0x18, 0x57,
  0x6f, 0x72, 0x6b, 0x41, 0x72, 0x65, 0x61, 0x4c, 0x6f, 0x6f, 0x70, 0x69, 0x6e,
  0x67, 0x41, 0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x01, 0x3c,
  0x0f, 0x3d, 0x2d, 0x3e, 0x01, 0x00, 0x19, 0x33, 0x01, 0x00, 0x1a, 0x35, 0x0d,
  0x00, 0x1e, 0x44, 0x01, 0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x14,
  0x44, 0x01, 0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x28, 0x44, 0x01,
  0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00, 0x1e, 0x43, 0x3c, 0x44, 0x01, 0x46, 0x51,
  0xf5, 0xe0, 0x43, 0x00, 0x1a, 0x35, 0x0e, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x7a,
  0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x14, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0,
  0x43, 0x00, 0x1e, 0x43, 0x28, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00,
  0x1e, 0x43, 0x3c, 0x44, 0x01, 0x46, 0x78, 0x55, 0x48, 0x42, 0x00, 0x1f, 0x37,
  0x18, 0x57, 0x6f, 0x72, 0x6b, 0x41, 0x72, 0x65, 0x61, 0x4f, 0x6e, 0x65, 0x53,
  0x68, 0x6f, 0x74, 0x41, 0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3c,
  0x0f, 0x3d, 0x2d, 0x3e, 0x01, 0x00, 0x19, 0x33, 0x01, 0x00, 0x1a, 0x35, 0x0d,
  0x00, 0x1e, 0x44, 0x01, 0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x14,
  0x44, 0x01, 0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x28, 0x44, 0x01,
  0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00, 0x1e, 0x43, 0x3c, 0x44, 0x01, 0x46, 0x51,
  0xf5, 0xe0, 0x43, 0x00, 0x1a, 0x35, 0x0e, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x7a,
  0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x14, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0,
  0x43, 0x00, 0x1e, 0x43, 0x28, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00,
  0x1e, 0x43, 0x3c, 0x44, 0x01, 0x46, 0x78, 0x55, 0x48, 0x42, 0x00, 0x1f, 0x37,
  0x11, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6e, 0x67, 0x41, 0x6e, 0x69, 0x6d,
  0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x02, 0x00, 0x19, 0x33, 0x01, 0x00, 0x1a,
  0x35, 0x0d, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e,
  0x43, 0x3c, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00, 0x1a, 0x35, 0x0e,
  0x00, 0x1e, 0x44, 0x01, 0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x3c,
  0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00, 0x1f, 0x37, 0x10, 0x4f, 0x6e,
  0x65, 0x53, 0x68, 0x6f, 0x74, 0x41, 0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f,
  0x6e, 0x00, 0x19, 0x33, 0x01, 0x00, 0x1a, 0x35, 0x0d, 0x00, 0x1e, 0x44, 0x01,
  0x46, 0x7a, 0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x3c, 0x44, 0x01, 0x46, 0x51,
  0xf5, 0xe0, 0x43, 0x00, 0x1a, 0x35, 0x0e, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x7a,
  0x55, 0x48, 0x42, 0x00, 0x1e, 0x43, 0x3c, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0,
  0x43, 0x00, 0x1f, 0x37, 0x10, 0x4c, 0x6f, 0x6f, 0x70, 0x69, 0x6e, 0x67, 0x41,
  0x6e, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x01, 0x00, 0x19, 0x33,
  0x01, 0x00, 0x1a, 0x35, 0x0d, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x78, 0x55, 0x48,
  0x42, 0x00, 0x1e, 0x43, 0x3c, 0x44, 0x01, 0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00,
  0x1a, 0x35, 0x0e, 0x00, 0x1e, 0x44, 0x01, 0x46, 0x78, 0x55, 0x48, 0x42, 0x00,
  0x1e, 0x43, 0x3c, 0x44, 0x01, 0x45, 0x04, 0x46, 0x51, 0xf5, 0xe0, 0x43, 0x00,
  0x35, 0x37, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69,
  0x6e, 0x65, 0x00, 0x38, 0x8a, 0x01, 0x05, 0x4d, 0x79, 0x4e, 0x75, 0x6d, 0x00,
  0x3b, 0x8a, 0x01, 0x06, 0x4d, 0x79, 0x42, 0x6f, 0x6f, 0x6c, 0x00, 0x3a, 0x8a,
  0x01, 0x06, 0x4d, 0x79, 0x54, 0x72, 0x69, 0x67, 0x00, 0x39, 0x8a, 0x01, 0x07,
  0x4c, 0x61, 0x79, 0x65, 0x72, 0x20, 0x31, 0x00, 0x3e, 0x00, 0x3d, 0x95, 0x01,
  0x05, 0x00, 0x41, 0x97, 0x01, 0x04, 0x00, 0x44, 0x9b, 0x01, 0x02, 0x00, 0x40,
  0x00, 0x3f, 0x00, 0x41, 0x97, 0x01, 0x01, 0x00, 0x3d, 0x95, 0x01, 0x03, 0x00,
  0x41, 0x97, 0x01, 0x02, 0x00, 0x47, 0x9b, 0x01, 0x01, 0x00, 0x01, 0x04, 0x09,
  0x41, 0x72, 0x74, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x32, 0x07, 0x00, 0x80, 0x8c,
  0x43, 0x08, 0x00, 0x80, 0x8c, 0x43, 0x09, 0x00, 0x80, 0xe9, 0xc3, 0x0a, 0x00,
  0x00, 0x5b, 0x43, 0x00, 0x12, 0x05, 0x02, 0x25, 0x31, 0x31, 0x31, 0xff, 0x00,
  0x14, 0x05, 0x00, 0x00, 0x1f, 0x37, 0x0b, 0x41, 0x6e, 0x69, 0x6d, 0x61, 0x74,
  0x69, 0x6f, 0x6e, 0x20, 0x31, 0x00,
];
export const stateMachineFileBuffer = arrayToArrayBuffer(stateMachineFileBytes);

